package com.mathlearning.auth.dto.discussion;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class DiscussionResponse {
    private Long id;
    private String title;
    private String content;
    private String preview;
    private AuthorInfo author;
    private List<String> tags;
    private Integer likes;
    private Integer comments;
    private Integer favorites;
    private Boolean isLiked;
    private Boolean isFavorited;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    @Data
    public static class AuthorInfo {
        private Long id;
        private String nickname;
        private String avatar;
        private String location;
    }
}








